package petClinic;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;


public class CreateTable {

	public static void main(String[] args) {
	
		SessionFactory factory = HibernateUtil.getSessionFactory();
		Session session = factory.openSession();
		Transaction tx = session.beginTransaction();
		VetSpecialty vs = new VetSpecialty();
		vs.setSpecialtyDesc("Dentista");
		session.saveOrUpdate(vs);
		tx.commit();
		session.close();
		System.out.println("FIN");
	}

}
